<template>
    <view>
        <!-- parse <template is="newsIndexTpl" :data="showUp:false,upImg:'',skin,dataList,_params:{cateId:1},sortItems,sortMenus,search,listMode,isTotalMenu:false,curMenu:'news_cate1'"/> -->
        <block name="newsIndexTpl">
            <cmpt-comm-list
                type="news"
                :search="search"
                :_params="{ cateId: 1 }"
                :_menus="sortMenus"
                :_items="sortItems"
                :isTotalMenu="false"
                route="news/list"
                topBottom="120"
                placeholder="搜索标题"
                @list="bindCommListCmpt"
            >
                <view class="up-project" v-if="false">
                    <image v-if="''" mode="widthFix" lazy-load :src="''" />
                </view>

                <!-- List Begin -->

                <template is="baseListTpl" :data="dataList:dataList.list,listMode" />
                <!-- List END -->

                <!-- load begin -->

                <template is="listLoadTpl" :data="skin:'load-project',dataList" />
                <!-- load end -->
            </cmpt-comm-list>

            <block v-if="skin.IS_SUB && 'news_cate1'">
                <template is="menuTpl" :data="(skin, 'news_cate1', returnHome)" />
            </block>
        </block>
    </view>
</template>

<script>
let behavior = require('../../../../behavior/news_index_bh.js');
let PassortBiz = require('../../../../biz/passport_biz.js');
let skin = require('../../skin/skin.js');
export default {
    data() {
        return {
            search: '',
            sortMenus: '',
            sortItems: '',

            dataList: {
                list: ''
            },

            skin: {
                IS_SUB: ''
            }
        };
    },
    mixins: [behavior],
    onReady: function () {
        PassortBiz.initPage({
            skin,
            that: this,
            isLoadSkin: true,
            tabIndex: -1,
            isModifyNavColor: true
        });
        this._setCateTitle(skin, 1);
    },
    methods: {
        bindCommListCmpt() {
            console.log('占位：函数 bindCommListCmpt 未声明');
        }
    }
};
</script>
<style>
@import './news_cate1.css';
@import 'undefined';
</style>
